home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 476-500 / disk_500 / wiconify / wiconify-source.lzh / Source / wIconify.h < prev    next >
C/C++ Source or Header  |  1991-04-19  |  2KB  |  90 lines

  1. /*
  2.  *  WICONIFY    A utility that allows you to iconify any Intuition window
  3.  *              on any screen, and to open WB windows on any screen.
  4.  *
  5.  *  wIconify.h  Main include file for the wIconify loader.
  6.  *
  7.  *  Copyright 1990 by Davide P. Cervone, all rights reserved.
  8.  *  You may use this code, provided this copyright notice is kept intact.
  9.  */
  10.  
  11. #ifndef INTUITION_PREFERENCES_H
  12. #define INTUITION_PREFERENCES_H             /* don't need 'em */
  13. #include <intuition/intuition.h>
  14. #endif
  15. #include "wStructs.h"
  16. #include "wMemory.h"
  17.  
  18. #define PROGRAM         "wIconify"
  19. #define VERSION         "v1.2"
  20. #define COPYRIGHT\
  21.    "Copyright (c) 1990 by Davide P. Cervone, all rights reserved"
  22.  
  23. #define USAGE           "wIconify [initfile]"
  24.  
  25.  
  26. /*
  27.  *  Loader version number
  28.  */
  29. #define MAJLOADVERS     1
  30. #define MINLOADVERS     3
  31.  
  32. /*
  33.  *  Expected handler version number
  34.  */
  35. #define MAJICONVERS     3
  36. #define MINICONVERS     8
  37.  
  38.  
  39. /*
  40.  *  Initialization files
  41.  */
  42. #define INITFILENAME1   "wIconify:wIconify.Init"
  43. #define INITFILENAME2   "S:wIconify.Init"
  44. #define HANDLERCODE1    "wIconify:wIconify-Handler"
  45. #define HANDLERCODE2    "L:wIconify-Handler"
  46. #define STACKSIZE       6000L       /* stack size for handler */
  47.  
  48.  
  49. #define EXIT_ERROR      10
  50. #define EXIT_OK         0
  51. #define ONE             1L
  52.  
  53.  
  54. /*
  55.  *  Default keys and qualifiers for iconifying a window
  56.  *  and for activating the wIconify window on the active screen
  57.  */
  58.  
  59. #define WICONIFYKEY     (IECODE_RBUTTON+IECODE_UP_PREFIX)
  60. #define WQUALIFIERS     IEQUALIFIER_LEFTBUTTON
  61. #define WCHANGEQUALS    IEQUALIFIER_LALT
  62. #define WACTIVEKEY      (KEY_F1+IECODE_UP_PREFIX)
  63. #define WACTIVEQUAL     IEQUALIFIER_LSHIFT
  64. #define KEY_F1          0x50
  65.  
  66. #define SHIFTKEYS       (IEQUALIFIER_LSHIFT| IEQUALIFIER_RSHIFT)
  67.  
  68. #define NOCHANGE        99              /* no change to menu setting */
  69. #define NOCOLOR         ((UWORD)-1)     /* no color specified */
  70.  
  71. extern struct IntuitionBase *IntuitionBase;
  72. extern struct GfxBase *GfxBase;
  73. extern struct LayersBase *LayersBase;
  74. #define INTUITION_REV       0
  75. #define GRAPHICS_REV        0
  76. #define LAYERS_REV          0
  77.  
  78. /*
  79.  *  Library Vector Offsets for the routines trapped by the handler
  80.  */
  81.  
  82. extern long LVOOpenWindow,LVOCloseWindow;
  83. extern long LVOOpenScreen,LVOCloseScreen;
  84. extern long LVOSetWindowTitles;
  85. extern long LVOWindowToFront,LVOWindowToBack,LVOActivateWindow;
  86. extern long LVOBuildSysRequest,LVOFreeSysRequest,LVOAutoRequest;
  87.  
  88. extern long SetFunction();
  89. extern APTR FindTask();
  90.